package client;

import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.text.JTextComponent;
/**
 * @auther WangPeihu
 */
public class Session {

	private static JFrame jf = new JFrame("我的聊天室");
	private static JPanel display = new JPanel();
	private static  JPanel writer = new JPanel();
	private static JTextComponent dialogtext ;
	private static  JTextArea writertext = new JTextArea(1000, 1000);
	private static JLabel pic = new JLabel("对方");
	private static JButton send = new JButton("发送");
	public Session() {

		display.add(dialogtext,FlowLayout.LEFT);
		display.add(pic);

//		writer.add(writertext);
//		writer.add(send);

		jf.add(display);

		//jf.add(writer,BorderLayout.CENTER);

		jf.setLocation(200, 200); // 设置出现位置
		jf.setSize(800,600); // 设置窗口大小
		jf.setVisible(true); // 设置可见
		jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}

	public static void main(String[] args) {
		new Session();
	}
}
